import { createStore } from 'vuex'
import user from './modules/user'
import cart from './modules/cart'
import category from './modules/category'
import vjss from 'vuejs-storage'
export default createStore({
  modules: {
    user,
    cart,
    category
  },
  plugins: [
    vjss({
      namespace: 'xtx',
      keys: ['user', 'cart']
      // keep both root's state.a & moduleA's state
    })
  ]
})
